<template>
    <div>
        <mt-field label="学号" placeholder="请输入查询学号" v-model="userSid"></mt-field>
        <mt-field label="查询结果" placeholder="暂未查询" type="textarea" rows="12" :value="fructify"></mt-field>
        <mt-button type="default" @click="send">查询</mt-button>
    </div>
</template>

<script>
    import {findHealthDay} from "../../../api";

    export default {
        name: "FindHealthDay",
        data(){
            return {
                userSid: '',
                fructify: ''
            }
        },
        methods:{
            async send(){
                let result = await findHealthDay({userSid:this.userSid})
                let user = result.data
                this.fructify = '学号：'+user.userSid+'\n' +
                    '姓名：'+user.userName+'\n' +
                    '地址：'+user.locationStatus+'\n' +
                    '健康：'+user.healthStatus+'\n' +
                    '体温：'+user.temperature+'\n' +
                    '接触病人情况：'+user.contact+'\n'
            }
        }
    }
</script>

<style scoped>

</style>